package net.maku.bean.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import net.maku.utils.DateUtils;

import java.io.Serializable;
import java.util.Date;

/**
* 用户信息表
*
* @author 阿沐 babamu@126.com
* @since 1.0.0 2024-09-02
*/
@Data
@Schema(description = "用户信息表")
public class WebUserVO implements Serializable {
	private static final long serialVersionUID = 1L;

	@Schema(description = "id 用户ID")
	private Long id;

	@Schema(description = "微信ID")
	private String openid;

	@Schema(description = "用户名或昵称")
	private String username;

	@Schema(description = "密码")
	private String password;

	@Schema(description = "头像")
	private String avatar;

	@Schema(description = "性别   0：男   1：女   2：未知")
	private Integer gender;

	@Schema(description = "邮箱")
	private String email;

	@Schema(description = "手机号")
	private String mobile;

	@Schema(description = "用户剩余次数")
	private Integer countnum;

	@Schema(description = "状态  0：停用   1：正常")
	private Integer status;

	@Schema(description = "版本号")
	private Integer version;

	@Schema(description = "删除标识  0：正常   1：已删除")
	private Integer deleted;

	@Schema(description = "创建者")
	private Long creator;

	@Schema(description = "创建时间")
	@JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
	private Date createTime;

	@Schema(description = "更新者")
	private Long updater;

	@Schema(description = "更新时间")
	@JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
	private Date updateTime;


}